package com.cjm.one.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cjm.one.common.result.Result;
import com.cjm.one.model.goods.entity.GoodsCart;
import com.cjm.one.model.goods.vo.GoodsSkuCartVo;

import java.util.List;

public interface GoodsCartService {
    Result<Page<GoodsSkuCartVo>> getCartList(Integer current, Integer size);

    Result<Long> addCart(GoodsCart cart);

    Result<Boolean> updateCart(GoodsCart cart);

    Result<Boolean> deleteCart(Long id);

    Result<Boolean> deleteCartAll();

    Result<Boolean> deleteCartBatch(Long[] ids);

    Result<List<GoodsCart>> getAllCartList();

    Result<Page<GoodsSkuCartVo>> getCartListByIds(Long[] ids);
}
